<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var str = "网页标题上可以实现打字效果！";
			var i=0;
			setInterval(function(){
				i++;
				document.title = str.substr(0,i % (str.length+1));
			},1000);
		</script>
	</body>
</html>
